package org.jeecg.modules.htxincailiao.account.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.util.SmartVerificationUtil;
import org.jeecg.modules.htxincailiao.account.constant.HTAccountTypeEnum;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class HTSignUpSMSCaptchaDTO {
    @NotNull(message = "用户类型不能为空")
    @ApiModelProperty(value = "账户类型:0-后台用户, 1-平台会员, 2-问答专家（专题问答）, 3-平台商户, 4-评估机构, 5-产业联盟, 6-产业联盟成员, 7-产业联盟理事会成员, 8-产业联盟专家咨委员会成员, 9-产业联盟秘书处成员")
    private HTAccountTypeEnum accountType;

    /**手机号*/
    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = SmartVerificationUtil.PHONE_REGEXP, message = "手机号格式不正确")
    @ApiModelProperty(value = "手机号")
    private String phoneNumber;

    /** 验证码 */
    @NotNull(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码")
    private String captcha;

    @ApiModelProperty(value = "企业用户：联系人")
    private String contactPerson;

    /**企业名称*/
    @ApiModelProperty(value = "企业名称")
    private String enterpriseName;

    @ApiModelProperty(value = "个人用户：姓名")
    private String realName;
}
